package com.yue.design.singleton;

/**
 * 饥饿模式，也就是说直接就声明对象
 */
public class Hungry {
    public static Hungry hungry = new Hungry();

    private Hungry(){}
    public static Hungry getInstance(){
        return hungry;
    }
}
